package com.sl.sdn.entity.node;

import com.sl.sdn.entity.enums.OrganTypeEnum;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.SuperBuilder;
import org.springframework.data.neo4j.core.schema.Node;

/**
 * 网点实体
 */
@EqualsAndHashCode(callSuper = true) // callSuper = true: 生成的equals和hashCode方法会调用父类的equals和hashCode方法
@Node("AGENCY")
@Data
@ToString(callSuper = true) // callSuper = true: 生成的toString方法会调用父类的toString方法
@SuperBuilder(toBuilder = true) // 构建的时候也要能构建父类的属性
@NoArgsConstructor
public class AgencyEntity extends BaseEntity {

    @Override
    public OrganTypeEnum getAgencyType() {
        return OrganTypeEnum.AGENCY;
    }
}
